@import (reference) "./../../shared/color";
@import (reference) "./../../shared/common";
@height-basic-header: 100px;
.wrapper {
  width: 100%;
  height: 100%;
  background-color: @color-white;
  overflow-y: auto;
  overflow-x: hidden; // 模拟交易页面详情
}

.blank {
  display: inline-block;
  width:9px;
  height: 10px;
}

.basic-heading {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 2.8rem;
  .show-fixed {
    float: right;
  }
}

.basic-table {
  font-size: 13px;
  width: calc(100% - 12px);
  margin: 0px 6px 10px 6px;
  height: calc(~"100% - "@height-basic-header);
  white-space: nowrap;
  color: #666666;
  .divider-row {
    td {
      border-top: 0.2em solid transparent;
    }
  }
  .value-cell {
    font-weight: bold;
    text-align: right;
    padding-right: 7px;
    padding-left: 4px;
    .font-mono;
  }
}

.flex-header {
  padding: 5px 6px 0px 6px;
  .header-line {
    .display-flex(row, @align-items: flex-end);
    position: relative; // .with-margin {
    //   width: 88px;
    // }
  }
  .change {
    height: 56px;
    line-height: 56px;
  }
  border-bottom: 1px solid @color-gray-main;
  margin-bottom: @space-common;
}

.header-table {
  width: 100%;
  white-space: nowrap;
  .heading {
    font-size: 2.6rem;
    display: inline-block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }
  .heading-symbol {
    font-size: 2.2rem;
    vertical-align: middle;
  }
  td:last-child {
    text-align: right;
  }
  .change-rate {
    vertical-align: bottom;
    font-size: 2.2rem;
  }
}

.color-red {
  color: @color-red-red;
}

.color-green {
  color: @color-green-gray;
}

.change {
  font-size: 3.6rem;
  .mark {
    font-family: "iconfont" !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: 0.2px;
    font-size: 3.8rem;
  }
}

.change-rate {
  font-size: 2.2rem;
  text-align: right;
}

.market-flag {
  font-size: 1.2rem;
}

// 模拟交易页面 
.vtrade-wrapper {
  padding: 0 10px;
  .top-table {
    .display-flex(row, @align-items: center);
    justify-content: space-between;
    position: relative;
    margin: 5px auto;
    .detail-heading {
      font-size: 1.6rem;
      color: #333;
      td {
        display: inline-block;
        margin-right: 10px;
      }
      .symbol,
      .name {
        font-weight: bold;
        &.expand {
          font-size: 2.4rem;
        }
      }
      .change {
        &.down::after {
          content: "↓"
        }
        &.up::after {
          content: "↑"
        }
      }
      .change,
      .change-amount,
      .change-rate {
        display: inline-block;
        font-size: 1.6rem;
      }
      i {
        font-size: 1.4rem;
        color: #535353;
        cursor: pointer;
        &:hover {
          opacity: .8;
        }
      }
    }
  }
  .bottom-wrapper {
    .display-flex(row);
    .basic-right-wrapper {
      flex-grow: 1;
      user-select: none;
    }
    display: none;
    &.active {
      display: block; // animation: .5s linear 0s show-up;
    } // animation: .5s linear 0s hide-down;
    @keyframes show-up {
      from {
        display: none;
      }
      to {
        display: block;
      }
    }
    @keyframes hide-down {
      from {
        display: block;
      }
      to {
        display: none;
      }
    }
  }
}

// 文字直播间内连详情
.wrapper.stock-detail-tiny {
  .bottom-wrapper {
    margin: @space-common 0;
  }
  .header-table {
    td,
    td::after {
      font-size: 1.8rem;
      white-space: nowrap;
    }
  }
  .button-wrapper {
    position: relative;
    mini-addstock {
      background-color: #EEE;
    }
  }
}

// 直播间页面详情
.wrapper.teacher-detail {
  padding: 0 10px;
  .top-table {
    display: inline-block;
    position: relative;
    left: 200px;
    margin: 5px 0;
    .detail-heading {
      font-size: 1.6rem;
      color: #333;
      user-select: none;
      &>* {
        vertical-align: middle;
      }
      td {
        display: inline-block;
        margin-right: 10px;
      }
      .change {
        &.down::after {
          content: "↓"
        }
        &.up::after {
          content: "↑"
        }
      }
      .change,
      .change-amount,
      .change-rate {
        display: inline-block;
        font-size: 1.6rem;
      }
      i {
        font-size: 1.4rem;
        color: #535353;
        cursor: pointer;
        &:hover {
          opacity: .8;
        }
      }
    }
  }
  .bottom-wrapper {
    .display-flex(row);
    .basic-right-wrapper {
      flex-grow: 1;
      user-select: none;
    }
    display: none;
    &.active {
      display: block;
    }
  }
  // .header-table {
  //   width: 120px;
  //   text-align: left;
  //   .change,
  //   .change-rate {
  //     text-align: left;
  //   }
  //   .change,
  //   .change::after {
  //     font-size: 2.4rem;
  //     height: 19px;
  //     line-height: 19px;
  //     padding: 0;
  //   }
  //   .change::after {
  //     font-size: 2.2rem;
  //   }
  //   .change-rate {
  //     font-size: 1.3rem;
  //     height: 1em;
  //     line-height: 13px;
  //     padding: 0;
  //   }
  // }
  .basic-table {
    height: 40px;
    tr:first-child {
      td {
        vertical-align: top;
      }
    }
    tr:last-child {
      td {
        vertical-align: bottom;
      }
    }
    .table-cell {
      padding-left: @space-common;
    }
    .value-cell {
      text-align: right;
    }
  }
}

// 响应式设计，媒体查询
@media screen and (max-width:1375px) {
  .wrapper.teacher-detail {
    .top-table {
      .detail-heading {
        .change-amount,
        .change-rate {
          display: none;
        }
      }
    }
  }
}

@media screen and (min-width: 1376px) and (max-width:1450px) {
  .wrapper.teacher-detail {
    .top-table {
      .detail-heading {
        .change-amount {
          display: inline-block;
        }
        .change-rate {
          display: none;
        }
      }
    }
  }
}

@media screen and (min-width: 1451px) {
  .wrapper.teacher-detail {
    .top-table {
      .detail-heading {
        .change-amount,
        .change-rate, {
          display: inline-block;
        }
      }
    }
  }
}